package com.zr.planClass.mapper;

import com.zr.planClass.model.inquiry.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by 非常狂躁的猪 on 2019/12/26.
 */
@Mapper
public interface InquiryMapper {
    List<InquiryTotal> queryAllInquiry(InquiryQueryAllVo inquiryQueryAllVo);

    int queryAllInquiryCount(InquiryQueryAllVo inquiryQueryAllVo);

    List<SupplierVo> getAllSupplier(Integer legalPersonId);



    int queryAllSpareVoCount(SpareQueryAllVo spareQueryAllVo);

    List<SpareVo> queryAllSpareVo(SpareQueryAllVo spareQueryAllVo);

    List<SupplierVo> queryAllSupplier(SupplierQueryVo supplierQueryVo);

    int queryAllSupplierCount(SupplierQueryVo supplierQueryVo);

    List<SpareAndSupplier> queryAllSpareAndSupplier(List<VendorVo> list);

    List<SpareAndSupplier> queryAllSpareAndSupplierByPeiJian(List<SpareZongJianVo> inquiryDetailsList);

    void addInquiryTotal(InquiryTotal inquiryTotal);

    InquiryTotal getInquiryId(String requestForQuotationId);

    void addInquirySparedetail(List<SpareZongJianVo> inquiryDetailsList);

    void addInquirySupplierdetail(List<VendorVo> supplierDetailsList);

    List<SpareZongJianVo> getBeiFenSpare(Integer id);

    List<VendorVo> getBeiFenGongYingShang(Integer id);

    void deleteInquiryTotal(String requestForQuotationId);

    void deleteSparedetail(Integer id);

    void deleteSupplierdetail(Integer id);
    List<String> queryChaDeGongYingShang(List<String> list);

    List<SpareVo> queryAllSpareVoByNoTiaoJian();

    List<SupplierVo> queryAllSupplierNoTiaoJian();

    List<SpareVo> panduanBeiJianCunZAIfou(List<SpareZongJianVo> list);
}
